<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * 扩展了原生的表单验证类
 *
 * @package		Libraries
 * @author		Glen.luo
 * @since		Version 1.0
 */

class Admin_From_validation extends CI_Form_validation {

	/**
	 * Constructor
	 */
	public function __construct($rules = array())
    {
        parent::__construct($rules);
    }

    /**
	 * 返回在错误消息数组
	 *
	 * @access	public
	 * @return	array
	 */
    public function error_array()
    {
		if (count($this->_error_array) === 0)
		{
			return array();
        }

        return $this->_error_array;
    }
}

